package com.ouc.service;

import com.ouc.bean.User;
import com.ouc.interfaces.HelloSoapService;
import com.ouc.mapper.SelectUserByIdMapper;
import org.springframework.beans.factory.annotation.Autowired;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService(endpointInterface = "com.ouc.interfaces.HelloSoapService",serviceName = "helloSoapService")
public class HelloSoapServiceImpl implements HelloSoapService {
    @Autowired
    private SelectUserByIdMapper selectUserByIdMapper;
    @WebMethod
    public String testSoapService(@WebParam(name = "name") String name) {
        return "Hello World "+name;
    }
    @WebMethod
    public User getUserById(@WebParam(name = "id") Integer id) {
        return selectUserByIdMapper.SelectUerById(id);
    }
}
